package com.jy.adscm.operation.cg.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-07-26
 */
public class JqPlan implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("makeNo")
    private String makeNo;
    /**
     * 工序id
     */
    private Integer gid;
    @TableField(exist = false)
    private String gidName;
    /**
     * 工序执行人
     */
    private String perfromer;
    @TableField(exist = false)
    private String perfromerName;
    @TableField("gxType")
    private String gxType;
    /**
     * 状态
     */
    private Integer state;
    @TableField("startTime")
    private Date startTime;
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    @TableField("createTime")
    private Date createTime;
    @TableField("macNo")
     private  String  macNo;
    @TableField("macCode")
     private  String  macCode;
    @TableField("gxName")
     private  String gxName;
    private  String batch;

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getGxName() {
        return gxName;
    }

    public void setGxName(String gxName) {
        this.gxName = gxName;
    }

    public String getMacNo() {
        return macNo;
    }

    public void setMacNo(String macNo) {
        this.macNo = macNo;
    }

    public String getMacCode() {
        return macCode;
    }

    public void setMacCode(String macCode) {
        this.macCode = macCode;
    }

    public String getGidName() {
        return gidName;
    }

    public void setGidName(String gidName) {
        this.gidName = gidName;
    }

    public String getPerfromerName() {
        return perfromerName;
    }

    public void setPerfromerName(String perfromerName) {
        this.perfromerName = perfromerName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMakeNo() {
        return makeNo;
    }

    public void setMakeNo(String makeNo) {
        this.makeNo = makeNo;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getPerfromer() {
        return perfromer;
    }

    public void setPerfromer(String perfromer) {
        this.perfromer = perfromer;
    }

    public String getGxType() {
        return gxType;
    }

    public void setGxType(String gxType) {
        this.gxType = gxType;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartTime() {
        return startTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "JqPlan{" +
        "id=" + id +
        ", makeNo=" + makeNo +
        ", gid=" + gid +
        ", perfromer=" + perfromer +
        ", gxType=" + gxType +
        ", state=" + state +
        ", startTime=" + startTime +
        ", creator=" + creator +
        ", createTime=" + createTime +
        "}";
    }
}
